/**
 * 日常考核-事件考核-事件评审
 */

import request from '@/router/axios'

// 查询  列表
export function eventReviewList(query, type) {
  return request({
    url: `/appr-event/rckhsjkh/sjshpage/${type}` ,///appr-contract/zxgzgzcj/page/${type}`,
    method: 'get',
    params: query
  })
}



// 事件评审某条数据详情查询
export function dataDetail(id) {
  return request({
    url:`/appr-event/rckhsjkh/${id}`, //  `/appr-contract//zxgzgzcj/${id}  `
    method: 'get',
  })
}

// 修改分数
export function saveScore(query){
  return request({
    url: '/appr-event/rckhsjkh/updateXgfz', ///rckhsjkhdx/xgfz
    method: 'put',
    data: query
  })
}


// 领导同意
export function leaderAudition(ids) {
  return request({
    url: `/appr-event/rckhsjkh/sub/${ids}`, // /appr-contract/zxgzpro/process/audit/${ids}/${pass}
    method: 'put',
  })
}

// 领导驳回
export function leaderAuditionRefuse(ids) {
  return request({
    url: `/appr-event/rckhsjkh/subBh/${ids}`, // /appr-contract/zxgzpro/process/audit/${ids}/${pass}
    method: 'put',
  })
}

//提交审核给谁提示
export function showUserName(id) {
  return request({
    url: `/appr-event/rckhsjtask/getNextTaskUser/${id}`,
    method: 'get',
  })
}

//驳回给谁提示
export function showRefuseUserName(id) {
  return request({
    url: `/appr-event/rckhsjtask/getBhTaskUser/${id} `,
    method: 'get',
  })
}

//检查
export function checkSign(obj) {
  return request({
    url: '/appr-contract/hetonghtcj/checkSign',
    method: 'post',
    data: obj
  })
}


//导出
export function exportExcel(query) {
  return request({
    url: `/appr-event/rckhsjkh/exportExcel`,
    method: 'post',
    data: query,
    responseType: 'blob'
  })
}




